package com.zx.server.dao;

import com.zx.server.entity.IdentityEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
@Mapper
@Repository
public interface IdentityDao {

    public int addIdentity(IdentityEntity identity);

    public int updateIdentityById(int id);

    public IdentityEntity getIdentityById(int id);

    public List<IdentityEntity> getIdentityList(@Param("key") String key,@Param("limit") Integer limit,@Param("offset") Integer offset);
}
